<template>
 <div class="common-layout">
    <el-container>
      <el-aside width="200px" class="aside">
        <div class="asid1">
          <el-row class="tac">
            <el-col :span="10">
              <el-menu active-text-color="#ffd04b" background-color="#c6e2ff" class="el-menu-vertical-demo" default-active="1" text-color="	#000000" @open="handleOpen" @close="handleClose">
                <el-menu-item index="1">
                  <el-icon><UserFilled /></el-icon>
                  <span>用户管理</span>
                </el-menu-item>
                <el-menu-item index="2">
                  <el-icon><Tickets /></el-icon>
                  <span>文章管理</span>
                </el-menu-item>
                <el-menu-item index="3">
                  <el-icon><Sugar /></el-icon>
                  <span>权限管理</span>
                </el-menu-item>
                <el-menu-item index="4">
                  <el-icon><ChatDotSquare /></el-icon>
                <span>评论管理</span>
                </el-menu-item>
                <el-menu-item index="5">
                </el-menu-item>
                <el-menu-item index="6">
                </el-menu-item>
                <el-menu-item index="7">
                </el-menu-item>
                <el-menu-item index="8">
                </el-menu-item>
                <el-menu-item index="9">
                </el-menu-item>
                <el-menu-item index="10">
                </el-menu-item>
             </el-menu>
            </el-col>
          </el-row>
        </div>
        </el-aside>
        <el-container>
          <el-header>Header</el-header>
          <el-main>Main</el-main> 
        </el-container>
    </el-container>
  </div>
  
</template>
<script setup>
import { ref } from 'vue'
import { Menu as IconMenu, Message, Setting } from '@element-plus/icons-vue'

const handleOpen = (key , keyPath) => {
  console.log(key, keyPath)
}
const handleClose = (key, keyPath) => {
  console.log(key, keyPath)
}
</script>

<style lang="less" scoped>
// .tac{
//   // align-content: center;
//   // // justify-content: center;
//   height: 100%;
//   right: 50px;
// }
.aside{
  background-color: #c6e2ff;
  .asid1{
    height: 100%;
  }

}

</style>
